using System;

namespace DataLayer
{
	/// <summary>
	/// Summary description for CollectionAttribute.
	/// </summary>
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
	public class CollectionAttribute: Attribute
	{
		private string foreignKey;
		private Type collectionType;
		
		public CollectionAttribute()
		{
			
		}

		public CollectionAttribute(string foreignKey, Type collectionType)
		{
			this.foreignKey = foreignKey;
			this.collectionType = collectionType;
		}

		public string ForeignKey
		{
			get { return foreignKey; }
			set { foreignKey = value; }
		}

		public Type CollectionType
		{
			get { return collectionType; }
			set { collectionType = value; }
		}
	}
}
